﻿@model Lion.WeiXin.Core.Models.VipCardModel
@{
    Layout = "~/Views/Shared/_AppLayout.cshtml";
}
@section ChildPageJs {
    <script src="/Scripts/WeChat/WeChatProductChangePwd.js" type="text/javascript"></script>
}
<style>
    .mh-title {
        margin-top: 0px;
        font-size: 1.6em;
        font-weight: 200;
        text-align: center;
        display: block;
        word-wrap: normal;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        background-color: #0e90d2;
        color: white;
    }

    .mh-content {font-size:14px;color: #333;}
</style>
<div>
    <h2 class="mh-title">修改密码</h2>
</div>
@if (Model == null)
{ 
    <div class="mh-content">
      <p>您还没绑定会员卡，不能修改密码!</p>
      <a href="/WeChatProduct/BindVipCard" rel="external" data-role="button">立即绑定</a>
    </div>
}
else
{
<form id="fmSave">
    <div data-role="fieldcontain">
        <div>
            <label for="Code">*卡号：</label>
            <input type="text" id="Code" name="Code" value="@Model.Code" readonly="true" />
        </div>
         <div>
            <label for="Password">*原密码：</label>
            <input type="password" id="oldPassword" name="oldPassword" placeholder="原密码" />
        </div>
        <div>
            <label for="Password">*新密码：</label>
            <input type="password" id="Password" name="Password" placeholder="新密码" />
        </div>
        <div>
            <label for="Password2">*确认密码：</label>
            <input type="password" id="Password2" name="Password2" placeholder="确认新密码" />
        </div>
    </div>
    <div>
        <p id="msg"></p>
    </div>
    <div data-role="fieldcontain">
        <input type="button"  id="btnSave" data-icon="check" data-corners="false" iconpos="left" data-inline="false" value="保 存" />
    </div>
</form>
}